<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "wechat_user".
 *
 * @property integer $wid
 * @property integer $mid
 * @property string $username
 * @property string $question
 * @property string $answer
 * @property integer $time
 * @property integer $fid
 * @property integer $status
 */
class WechatUser extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'wechat_user';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['mid', 'username', 'question', 'answer', 'time', 'fid'], 'required'],
            [['mid', 'time', 'fid', 'status'], 'integer'],
            [['question', 'answer'], 'string'],
            [['username'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'wid' => 'Wid',
            'mid' => 'Mid',
            'username' => 'Username',
            'question' => 'Question',
            'answer' => 'Answer',
            'time' => 'Time',
            'fid' => 'Fid',
            'status' => 'Status',
        ];
    }
}
